package router

import (
	userapp "protection/user/user_app"

	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	gin.SetMode(gin.ReleaseMode)
	r := gin.Default()
	v1 := r.Group("/UserService")
	{
		v1.GET("/user", userapp.GetUser)
		v1.POST("/login", userapp.PostLogin)
	}

	return r
}
